// 处理地址码
export default function (form, codeToText) {
    form.selectedOptions.forEach((it, index) => {
        switch (index) {
            case 0: {
                form.provinceCode = it
                form.provinceName = codeToText[it]
                break
            }
            case 1: {
                form.cityCode = it
                form.cityName = codeToText[it]
                break
            }
            default: {
                form.districtCode = it
                form.districtName = codeToText[it]
            }
        }


    })
}